package gui.ciclo;

import java.awt.BorderLayout;
import java.awt.Frame;

import javax.swing.JDialog;

public class DialogoModificarCiclo extends JDialog {

	private static final long serialVersionUID = 1L;
	private PanelModificarCiclo panelModificarCiclo = null;
	private static DialogoModificarCiclo instancia = null;

	private DialogoModificarCiclo() {

	}

	public static DialogoModificarCiclo getInstancia() {
		if (instancia == null) {
			instancia = new DialogoModificarCiclo(null, "Panel Modificar Ciclo");
		}
		return instancia;
	}

	/**
	 * @param owner
	 */
	private DialogoModificarCiclo(Frame owner, String titulo) {
		super(owner);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.setModal(true);
		this.setSize(463, 392);
		this.setContentPane(getPanelCiclo());
		this.setLocationRelativeTo(null);
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private PanelModificarCiclo getPanelCiclo() {
		if (panelModificarCiclo == null) {
			panelModificarCiclo = PanelModificarCiclo.getInstancia();
			panelModificarCiclo.setLayout(new BorderLayout());
		}
		return panelModificarCiclo;
	}
}
